package myapps.ttclient.protocol.message.drawingscreen;

import java.io.DataOutputStream;
import java.io.IOException;

import myapps.ttclient.GlobalVariables;
import myapps.ttclient.Helper;
import myapps.ttclient.baseclass_and_interface.TTClientMessage;

public class DSLoadRequestMessage extends TTClientMessage {

	public String file;
	
	public DSLoadRequestMessage(String file)
	{
		this.file = file;
	}
	
	@Override
	public void toDataOutputStream(DataOutputStream dos) throws IOException {
		
		dos.writeByte(DS_LOAD_REQUEST);
		dos.writeInt(GlobalVariables.NO_LENGTH_CODE);
		
		Helper.WriteStringToDataOutputStream(dos, file);
		
	}

}
